package util;

import java.text.SimpleDateFormat;
import java.util.Calendar;

public class CommonUtil {
	public static String getCurrentDate() {
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		//规定格式
		//获取当前日期
		Calendar calendar = Calendar.getInstance();
		//格式化日期
		return sdf.format(calendar.getTime());
	}
}
